<!DOCTYPE html>
<html lang="en">
  <head>
    <meta charset="UTF-8" />
    <meta http-equiv="X-UA-Compatible" content="IE=edge" />
    <meta name="viewport" content="width=device-width, initial-scale=1.0" />
    <title>Document</title>
    <style>
      * {
        margin: 0;
        padding: 0;
        list-style: none; 
        text-decoration: none; 
        background-color: #ecc7b9;
      }
      nav {
        position: absolute; 
        auto
      }
      nav a:hover {
        color: #ff4400;
      }

      nav ul li a:link,
      nav ul li a:visited {
        display: block;
        width: 238px;
        height: 100%;
        text-align: center;
        line-height: 50px;
        font-weight: bold;
        font-size: 22px;
        background-color: #f5f5f5;
      }

      nav ul li a:hover,
      nav ul li a:active {
        background-color: #fff;
      }

      nav ul li ul {
       
        display: none; 
        position: absolute; 
      }
      nav ul li:hover ul {
        display: block;
        width: auto;
      }
      nav ul li ul li {
        float: none; 
        background-color: #fff;
        width: auto;
      }
      .logo {
            font-size: 30px;
            font-weight: 600;
            color: black;
      }
      header {
            display: flex;
            justify-content: space-between;
            align-items: center;
            background-color: #f5f5f5;;
            padding: 60px 40px;
      }
     
      #leftside{
    width: 30%;
    position: fixed;
    left: 10px;
    top: 150px;
}
div.gallery {
  margin: 10px;
  border: 10px solid white;
  float: left;
  width: 400px;
  box-shadow: 10px 10px 10px; 
}
div.desc {
  padding: 15px;
  text-align: center;
  color: #e31616;
}
      * {
        margin: 0;
        padding: 0;
        list-style: none; 
        text-decoration: none; 
        background-color: #ecc7b9;
      }
      nav {
        position: absolute; 
        auto
      }

      nav ul {
        margin: 0 auto;
        list-style: none;
        display: flex;
        width: 500px;
        height: 100%;
      }

      nav a {
        color: #6c6c6c;
        padding: 0.5em 1em;
      }
      nav a:hover {
        color: #ff4400;
      }

      nav ul li a:link,
      nav ul li a:visited {
        display: block;
        width: 238px;
        height: 100%;
        text-align: center;
        line-height: 50px;
        font-weight: bold;
        font-size: 22px;
        background-color: #f5f5f5;
      }

      nav ul li a:hover,
      nav ul li a:active {
        background-color: #fff;
      }

      nav ul li ul {
       
        display: none; 
        position: absolute; 
      }
      nav ul li:hover ul {
        display: block;
        width: auto;
      }
      nav ul li ul li {
        float: none; 
        background-color: #fff;
        width: auto;
      }
      .logo {
            font-size: 30px;
            font-weight: 600;
            color: black;
      }
      header {
            display: flex;
            justify-content: space-between;
            align-items: center;
            background-color: #f5f5f5;;
            padding: 60px 40px;
      }
      .wenzi{
        position: absolute;
        left: 50px;
        top: 50px;
        z-index: 101;
        color: red;
      }  
      #leftside{
    width: 30%;
    position: fixed;
    left: 10px;
    top: 150px;
}
div.gallery {
  margin: 10px;
  border: 10px solid white;
  float: left;
  width: 400px;
  box-shadow: 10px 10px 10px; 
}
div.desc {
  padding: 15px;
  text-align: center;
  color: #e31616;
}

footer{
	clear:both;
	display:block;
	background-color: white;
	color:black;
	text-align:center;
	padding:15px;
 }
 main{
  float: left;
 }
main{
  display:;
}
    </style>
  </head>
  <body>
    <img width="100%" height="500px" src="first.jpg">
    <header>
    <nav>
      <ul>
        <li>
          <a href="#" class="logo">FATE 20TH</a>
        </li>
        <li>
          <a href="">游戏</a>
          <ul>
            <li>
              <a href="#">fate stay night</a>
            </li>
            <li>
              <a href="#">Fate/hollow ataraxia</a>
            </li>
            <li>
              <a href="#">Fate/unlimited codes</a>
            </li>
          </ul>
        </li>
        <li>
          <a href="">动画</a>
          <ul>
            <li>
              <a href="">fsn saber 线</a>
            </li>
            <li>
              <a href="">fsn 无限剑制篇</a>
            </li>
            <li>
              <a href="">fsn 天之杯篇</a>
            </li>
          </ul>
        </li>
        <li>
          <a href="">小说</a>
          <ul>
            <li>
              <a href="">fate zero </a>
            </li>
            <li>
              <a href="">fate strange fake</a>
            </li>
            <li>
              <a href="">fate apocrypha</a>
            </li>
          </ul>
        </li>
        <li>
          <a href="">漫画</a>
          <ul>
            <li>
              <a href="">卫宫家的饭</a>
            </li>
            <li>
              <a href="">幻想嘉年华</a>
            </li>
          </ul>
        </li>
        
      </ul>
    </nav>
    </header>
    <main>
      <div class="gallery">
                        
        <img src="a.jpg" width="400" height="400">
      </a>
      <div class="desc">无限剑制篇<br>
       </div>
    </div>
    <div class="gallery">
                        
      <img src="b.jpg" width="400" height="400">
    </a>
    <div class="desc">天之杯篇<br>
     </div>
  </div>
  <div class="gallery">
                        
    <img src="c.jpg" width="400" height="400">
  </a>
  <div class="desc">zero 篇<br>
   </div>
</div>
<div class="gallery">
                        
  <img src="d.jpg" width="400" height="400">
</a>
<div class="desc">fate apocrypha<br>
 </div>
</div>
<div class="gallery">
                        
  <img src="f.jpg" width="400" height="400">
</a>
<div class="desc">fgo 绝对巴比伦魔兽战线<br>
 </div>
</div>
<div class="gallery">
                        
  <img src="g.jpg" width="400" height="400">
</a>
<div class="desc">型月名画<br>
 </div>
</main>

<footer>
  avid制作
</footer>
  </body>
</html>

